package com.it.xyx;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Classname FeignApi
 * @Description TODO
 * @Date 2024/8/22 19:12
 * @Created by 潜伏Sir
 */
//value是调用服务名   fallback是服务降级类
@FeignClient(value = "nacos-payment-provider",
        fallback = DemoFeignSentinelApiFallBack.class)
public interface FeignApi {

    @GetMapping("/cs")
    public String cs();
}
